package com.stud.seckill.common.enums;

import lombok.Getter;

/**
 * 分布式锁KEY枚举
 */
@Getter
public enum LockKeyEnum {

    访问限制("lock:accessLimit:", "")
    ;

    private String key;

    private String description;

    private long timeout;

    LockKeyEnum(String key, String description) {
        this.key = key;
        this.description = description;
    }

    LockKeyEnum(String key, String description, long timeout) {
        this.key = key;
        this.description = description;
        this.timeout = timeout;
    }

}
